package com.wzz.seckillone.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wzz.seckillone.pojo.Goods;
import com.wzz.seckillone.pojo.SeckillGoods;
import com.wzz.seckillone.vo.GoodsVo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2021-11-08
 */
@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {

    List<GoodsVo> fineGoodsVo();

    GoodsVo findGoodsVoById(String id);

    Goods getGoodsByGoodsId(String goodsId);

    void updateGoodsCount(Goods good);
}
